/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jsonParser;

import java.util.ArrayList;

/**
 *
 * @author David de Hoop
 */
public class SensorParse extends TCPSocket {            
        ArrayList<SensorParse> SensorList = new ArrayList<SensorParse>();
        
        String name; 
        double value;
        String unit; 
        String timeStamp; 
        double lowerLimit;
        double upperLimit;
        String lowerLimitAlarmName;
        
        public SensorParse(String name, double value, String unit, String timeStamp, double lowerLimit, double upperLimit, String lowerLimitAlarmName) {
        	this.name = name;
        	this.value = value;
        	this.unit = unit;
        	this.timeStamp = timeStamp;
        	this.lowerLimit = lowerLimit;
        	this.upperLimit = upperLimit;
        	this.lowerLimitAlarmName = lowerLimitAlarmName;
        }
        
        public void AddSensorToList() {
        	SensorList.add(new SensorParse(name, value, unit,timeStamp,lowerLimit,upperLimit,lowerLimitAlarmName));
        }         
  
}
